package com.kingdee.eas.deppon.journal;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;



public abstract class AbstractJournalFacadeControllerBean extends AbstractBizControllerBean implements JournalFacadeController
{
    protected AbstractJournalFacadeControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("5019FE51");
    }

    public String addJournal(Context ctx, String objectString) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("33e4a807-0d25-481c-b259-07c8a74dde98"), new Object[]{ctx, objectString});
            invokeServiceBefore(svcCtx);
            String retValue = (String)_addJournal(ctx, objectString);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _addJournal(Context ctx, String objectString) throws BOSException
    {    	
        return null;
    }

    public String deleteJournal(Context ctx, String condition) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("0cc520c1-cafc-433d-9620-9b0596fa5943"), new Object[]{ctx, condition});
            invokeServiceBefore(svcCtx);
            String retValue = (String)_deleteJournal(ctx, condition);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _deleteJournal(Context ctx, String condition) throws BOSException
    {    	
        return null;
    }

    public String redPunch(Context ctx, String condition) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("b4003500-fe19-4fc1-a9ab-fac1bb63bebf"), new Object[]{ctx, condition});
            invokeServiceBefore(svcCtx);
            String retValue = (String)_redPunch(ctx, condition);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _redPunch(Context ctx, String condition) throws BOSException
    {    	
        return null;
    }

}